<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app {
            position: relative;
            display: flex;
            width: 1340px;
            padding: 0;
            margin: 0 auto;
            margin-top: -10px;
            border-bottom: 5px solid #f5f5f5;
            border-left: 5px solid #f5f5f5;
            border-right: 5px solid #f5f5f5;
        }

        #nav {
            position: absolute;
            width: 1340px;

            display: flex;
            justify-content: space-between;

            background-color: #f5f5f5;
        }

        #box-phone {
            display: flex;
            flex-wrap: wrap;
            width: 1340px;
        }

        #phone {
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 5px solid #f5f5f5;
        }

        #left {
            border: 5px solid #f5f5f5;
        }

        .des {
            font-size: 14px;
            color: #cecece;
        }

        .price {
            margin-top: 16px;
            color: #edaf84;
        }
    </style>
</head>

<body>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <div id="app">
        <div id="nav">
            <span>手机</span>
            <span>查看更多</span>
        </div>
        <div id="left">
            <img src="./ad1.png" alt="小米折叠屏手机">
        </div>

        <div id="box-phone">
            <div v-for="(item,index) in imgArraySrc" id="phone">
                <img :src="item.src">
                <span>{{item.name}}</span>
                <span class="des">{{item.des}}</span>
                <span class="price">{{item.price}}</span>
            </div>
        </div>
    </div>
    <script>
        const app = Vue.createApp({
            data() {
                return {
                    imgArraySrc: [
                        { src: './phone1.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone2.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone3.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone4.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone5.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone6.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone7.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' },
                        { src: './phone8.png', name: "Redmi K50电竞版", des: '全线拉满的冷血旗舰', price: '3299元起' }
                    ]
                }
            },
        }).mount("#app")
    </script>
</body>

</html>